import axios from 'axios'
const baseURL = 'http://www.lovegf.cn:8899'
axios.defaults.baseURL = baseURL
//获取轮播图
export const getLunbotu = params => {
  return axios.get(`/api/getlunbo`).then(res => res.data)
}
//获取新闻列表
export const getNewsList = params => {
  return axios.get(`/api/getnewslist`).then(res => res.data)
}
//获取新闻详情
export const getNewsInfo = params => {
  return axios.get(`/api/getnew/${params}`).then(res => res.data)
}
//获取评论详情
export const getComment = params => {
  return axios.get(`/api/getcomments/${params.id}?pageindex=${params.pageindex}`).then(res => res.data)
}